//
//  NSString+Path.m
//  HSCategoryKit
//
//  Created by huang on 2018/8/1.
//

#import "NSString+Path.h"

@implementation NSString (Path)

#pragma mark 数据库路径
+ (NSString *)dbPath
{
    NSString *documentPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
    NSString *path = [documentPath stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.db",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]]];
    return path;
}

@end
